<?php
	/**
	 * 抽奖信息
	 */
    class lotteryInfo extends APIBase {
		
		public $tag = "lotteryInfo";
		public $isLogin = false;
		
		public function before() {
			return true;
		}

		public function logic() {
			if (!isset($this->param['vercode'])) {
				$vercode = 0;
			}else{
				$vercode = (int) $this->param['vercode'];
			}

			if (!isset($this->param['ua'])) {
				$ua = " ";
			}else{
				$ua = $this->param['ua'];
			}

			if (!isset($this->param['imsi'])) {
				$imsi = " ";
			}else{
				$imsi = $this->param['imsi'];
			}

			if (!isset($this->param['imei'])) {
				$imei = " ";
			}else{
				$imei = $this->param['imei'];
			}

			if (!isset($this->param['channel'])) {
				$channel = " ";
			}else{
				$channel = $this->param['channel'];
			}

			if (!isset($this->param['uid'])) {
				$uid = 0;
			}else{
				$uid = $this->param['uid'];
			}

			$info = array();
			if ($vercode <= 6){
				$info["lottery_isopen"] = 0;
			}else{
				$info["lottery_isopen"] = Game::$lottery_isopen;
			}
			$info["lottery_money"] = Game::$lottery_money;
			$info["lottery_least_money"] = 1000000;
			$this->returnData($info);
		}
		
    	public function after() {
		}
    }
?>